home *** CD-ROM | disk | FTP | other *** search
- ;OCL{{{}}}
- ;OCL{{{ comments
- ; append the current line to the previous line and delete all spaces
- ; between the lines. Calling this when one of the lines isn't a text-line
- ; stops the macro with errormessage ``oops''.
- ;OCL}}}
- @if-using not(ocl-file-append)
- @use (ocl-file-append)
- ;OCL{{{ reference description
- @if-using ( FUN-REFERENCE ) ; 1 ;
- Define a function, to join the current line and the line above.
- @fi
- ;OCL}}}
- ;OCL{{{ libs
- @if-using not(ocl-file-error) @lib error @fi
- @if-using not(ocl-file-delspaces) @lib delspaces @fi
- ;OCL}}}
- ;OCL{{{ append-to-previous-line
- ;OCL{{{ reference
- @if-using ( FUN-REFERENCE ) ; 2 ; append-to-previous-line-ref
- ;OCL{{{ @append append-to-previous-line
- Join the current and the previous line.
- ;OCL}}}
- @fi
- ;OCL}}}
- ( deffun append-to-previous-line
- ( if not(in-prompt)
- ( previous-line
- end-of-line
- if last-message M_ERR_PO () fi
- delete-character
- if not(last-message M_ERR_PO)
- ( delspaces )
- fi
- )
- fi
- )
- )
- ;OCL}}}
- @fi
-